//
//  Twitter03AppDelegate.h
//  iTweet
//
//  Created by Dang Duc Nam (namk42c@yahoo.com) on 5/12/09.
//  Copyright 2009 Unitech. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "MGTwitterEngine.h"
#import "LoginViewController.h"
@class User;
@interface iTweetAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate, UIActionSheetDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController;
	MGTwitterEngine *twitterEngine;
	NSMutableArray *received_friend_timeline;
	NSMutableArray *received_replies;
	NSMutableDictionary *cached_users;
	NSMutableDictionary *received_images_small;
	NSMutableDictionary *received_images_large;
	NSMutableArray *received_user;
	BOOL _isDataSourceAvailable;
	BOOL _isServiceAvailable;
	NSString *_username;
	NSString *_password;
	NSString *current_user_timeline;
	NSString *current_user_remove;
	NSString *current_user_info;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) NSMutableArray* received_friend_timeline;
@property (nonatomic, retain) NSMutableArray* received_replies;
@property (nonatomic, retain) NSMutableDictionary *cached_users;
@property (nonatomic, retain) NSMutableDictionary* received_images_small;
@property (nonatomic, retain) NSMutableDictionary* received_images_large;
@property (nonatomic, retain) NSMutableArray* received_user;

- (void)getStatus:(int )page count:(int )messages_count refresh:(Boolean)refresh_status;
- (void)getReplies:(int)page count:(int)messages_count refresh:(Boolean)refresh_status;
- (void)getUserTimeline:(NSString *)username page:(int)page count:(int)messages_count refresh:(Boolean)refresh_status;
- (void)disableUpdatesFor:(NSString *)username;
-(User *)getUser:(NSString *)userID;
-(void)reloadHome;
-(void)goHome;
- (BOOL)isDataSourceAvailable;
- (BOOL)isServiceAvailable;
-(void)setEngine:(NSString *)username password:(NSString *)password;
-(UIImage *)getUserLargeImage:(User *)user;
-(UIImage *)getUserNormalImage:(User *)user;
@end
